TQASetPtr
A drawing engine must define a method to set a pointer value for a draw context state variable.
typedef void (*TQASetPtr) ( TQADrawContext *drawContext, TQATagPtr tag, const void *newValue);
drawContext
- A draw context.
tag
- A state variable tag.
newValue
- The new value of the specified state variable.
DESCRIPTION
YourTQASetPtr
function should set the value of the draw context state variable specified by thedrawContext
andtag
parameters to the pointer value specified by thenewValue
parameter.Your drawing engine must accept all possible values for the
tag
parameter. If you encounter a value in thetag
parameter that you cannot recognize, you should do nothing. Similarly, you should do nothing if thetag
parameter specifies a state variable for optional features your drawing engine does not support.SPECIAL CONSIDERATIONS
If yourTQASetPtr
function needs to change one or more of the function pointers in the specified draw context, it must call theQARegisterDrawMethod
function to do so. It should not directly change the fields of a draw context.